import java.util.Arrays;

public class D9191 {
    public static void main(String[] args) {
        String ChePais = "豫U·4C01H,豫N·NQ560,豫N·A8F47,豫Q·3F54E,豫P·938MQ,豫B·970EH,豫K·Z13L0,豫F·1Y93H,豫J·677SU,豫E·6CK75,豫K·47HC3,豫A·Q9L13,豫B·906EK," +
                "豫E·DK598,豫K·7QG44,豫J·07F5M,豫D·4EM64,豫L·211BC,豫G·C3Y18,豫Q·ST782,豫A·EA559,豫A·E8N37,豫J·8Y42P,豫N·1D3R5,豫L·UJ665,豫J·8HD22,豫K·SC715,豫E·481WL,豫N·2TC74,豫M·JS069,豫U·960RQ,豫B·Y8R01,豫F·72QH5,豫M·718XE,豫E·39US8,豫K·460WE,豫B·9L09Z,豫E·63TN9,豫P·QH098,豫J·Y73C8,豫U·GB860,豫K·X4P67,豫C·XC178,豫L·V74W5,豫N·FV022,豫G·116JA,豫U·563FS,豫E·YS027,豫N·8MQ39,豫B·FS291,豫B·363PQ,豫G·V0U30,豫J·09BQ1,豫J·DY503,豫P·N0Z29,豫M·46ED4,豫C·984XB,豫P·43R7P,豫P·2Y1U4,豫J·JW189,豫M·1QV55,豫H·32GX3,豫L·703VA,豫H·74MT4,豫B·5BW60,豫B·VW890,豫C·38WK0,豫B·CA478,豫J·70Q2A,豫P·F6B05,豫M·6E53H,豫M·AQ375,豫P·S120T,豫Q·7Z8J7,豫U·VV761,\n" +
                "豫E·701TB,豫B·423QT,豫C·731ZM,豫L·F9K88,豫J·74J3H,豫U·1R17U,豫J·SX033,豫P·X11M9,豫G·304KE,豫K·743VM,豫U·0NQ63,豫J·766WK,豫Q·YS803,豫J·8F0K8,豫N·YX064,豫G·33UX1,豫U·D6J13,豫J·MB623,豫C·GZ566,豫J·54T4J,豫Q·B2P39,豫F·7Q36X,豫B·B82B4,豫P·P7Q68,豫D·4K6X3,\n" +
                "豫J·XV050,豫C·LW360,豫E·91TJ9,豫U·44WM7,豫J·78CF7,豫J·AU509,豫C·D30D3,豫J·MP507,豫B·648GY,豫J·412CK,豫E·AA964,豫B·HL193,豫E·0G21Z,豫D·39MM1,豫E·Z74H6,豫J·23P9U,豫A·38S8L,豫M·05NW3,豫G·B1Z28,豫H·LY489,豫L·QX542,豫K·46DS8,豫N·R3A96,豫B·1C93E,豫G·S483C,\n" +
                "豫J·86NU0,豫A·3K27G,豫H·0C7A3,豫Q·269KE,豫J·081GS,豫M·XE399,豫U·0HZ55,豫A·3T9X6,豫G·4LC37,豫P·NN111,豫A·9RC87,豫J·60J4M,豫J·6N94K,豫D·FS329,豫A·4CX42,豫E·4N4T3,豫Q·7D9A2,豫L·GF479,豫P·80GB1,豫D·D0U84,豫M·3FR80,豫F·31KN1,豫E·6G0F6,豫J·C36B3,豫F·J3Q22,\n" +
                "豫U·5HV81,豫Q·RX936,豫J·072DL,豫B·B78A9,豫M·0P9M8,豫J·0K19L,豫A·GS959,豫J·MB499,豫D·DM076,豫C·31T3K,豫J·PH325,豫J·912TY,豫M·RB425,豫C·PM948,豫H·165SK,豫B·7DP39,豫K·2QK65,豫J·3F94C,豫M·924EH,豫E·9U53W,豫G·739NV,豫D·SV629,豫Q·587KV,豫J·KK497,豫H·UW394,\n" +
                "豫J·X1D24,豫U·7YP34,豫U·46LY0,豫K·DT861,豫J·J3V99,豫N·SS822,豫A·MZ411,豫B·43EC6,豫J·Q184F,豫K·NS485,豫E·BE241,豫J·426AC,豫H·902YQ,豫A·TX235,豫E·73GF3,豫B·72H0Z,豫L·011UK,豫C·RB218,豫D·243EM,豫M·579XD,豫G·469DC,豫M·PN853,豫Q·S4E87,豫J·54T6G,豫Q·FD768,\n" +
                "豫N·M41F1,豫E·588WV,豫G·2DX46,豫F·151QU,豫B·UP612,豫U·47YC9,豫J·512GP,豫C·922TU,豫F·VL082,豫G·9EJ66,豫M·S45W6,豫L·5HG66,豫J·B5T06,豫J·4KN26,豫C·37V4S,豫E·235RZ,豫A·C0P89,豫Q·19UH6,豫Q·793KM,豫B·960HA,豫L·XH535,豫C·WE589,豫F·93FB1,豫G·8V8F9,豫E·309PV,\n" +
                "豫K·6Y09S,豫J·8QU02,豫A·E4K48,豫D·T27N3,豫M·74HZ2,豫M·3FV28,豫E·XR365,豫D·M64Y0,豫H·V32M0,豫K·591FG,豫E·MP198,豫G·U22F6,豫Q·811XY,豫J·178BR,豫U·KB287,豫B·FG285,豫K·8G99K,豫C·KE053,豫C·9Q1N9,豫Q·Z0U26,豫C·726YB,豫P·C1Q25,豫C·57K9B,豫C·246UN,豫B·CC460,\n" +
                "豫N·6HZ88,豫A·R6P50,豫U·P4B16,豫J·X797Q,豫N·DQ631,豫G·RB830,豫M·2B09N,豫U·XZ810,豫F·94E6F,豫L·867MN,豫C·YJ188,豫M·GL808,豫P·MZ099,豫L·L6S50,豫K·4HS65,豫F·5A51L,豫K·MV015,豫P·TC102,豫D·LK653,豫B·R39Z9,豫N·J5Z10,豫K·8K1C8,豫F·303CW,豫J·Q66T0,豫Q·G03S9,\n" +
                "豫C·9H4W9,豫M·95C2D,豫J·BH828,豫G·D1M83,豫K·F6F65,豫L·WA080,豫J·5D6K5,豫M·PF214,豫Q·EB617,豫M·FZ630,豫E·96WB3,豫K·632SU,豫J·EG438,豫A·56X8U,豫J·KR816,豫J·670SV,豫J·7B55M,豫J·483SE,豫G·JJ639,豫Q·599XZ,豫Q·RW365,豫L·7A9L9,豫L·CX620,豫K·901MR,豫G·06F7X,\n" +
                "豫P·KD138,豫C·41P5V,豫F·9GG78,豫G·L894N,豫J·829HA,豫Q·1QK10,豫L·Z868T,豫D·RG192,豫H·A254P,豫U·6P76L,豫P·18DL8,豫U·825UV,豫H·X710A,豫J·0SE22,豫G·54RA8,豫G·348LH,豫G·CH396,豫P·55S3Y,豫J·SP161,豫B·8DN87,豫J·208UN,豫G·XR800,豫C·H5H25,豫U·E03A6,豫N·8N3V4,\n" +
                "豫J·87TF5,豫L·3F59L,豫M·FU196,豫B·JC043,豫B·0K19K,豫H·48FU7,豫G·EY330,豫U·FF811,豫L·2G5C3,豫E·927AE,豫E·6P65R,豫G·1M2T7,豫D·239FK,豫Q·334QP,豫J·W7Q73,豫E·AU531,豫H·JP179,豫C·026VB,豫E·8CJ59,豫C·AV288,豫P·2MR23,豫H·T51D4,豫A·938RH,豫F·KA090,豫C·WU973,\n" +
                "豫M·FE246,豫P·1WD25,豫F·VZ073,豫B·P3K92,豫H·26BS0,豫E·NL711,豫N·7U8P9,豫P·571PR,豫H·0N7H6,豫G·412SX,豫N·66E6V,豫G·Z72P9,豫B·984CU,豫G·SX869,豫Q·381GR,豫G·Y4C20,豫B·SW689,豫G·FT294,豫N·S4Y49,豫B·19T9M,豫B·9M79N,豫U·35US3,豫J·W54T9,豫M·AU208,豫N·18Y6Y,\n" +
                "豫C·MH474,豫P·5GT49,豫F·XC314,豫L·KS688,豫Q·0X84L,豫B·088MV,豫A·XS408,豫K·004PB,豫E·360DQ,豫L·771DY,豫C·246ME,豫J·EB789,豫J·27M9U,豫M·B8T81,豫J·58NN6,豫B·E0W15,豫G·78ZJ7,豫J·7G21M,豫Q·R164P,豫K·25T8U,豫J·LU980,豫M·7LC67,豫D·P6T94,豫G·20CD9,豫C·84Y8N,\n" +
                "豫A·SP137,豫B·583JJ,豫N·789QG,豫M·9E6T3,豫E·40VS1,豫J·1R4Z7,豫E·32WC3,豫M·XH845,豫F·1YR49,豫J·J19V0,豫E·749QL,豫A·8C7S3,豫U·83YK3,豫E·1J2B5,豫U·299DA,豫P·P0C79,豫G·69G5S,豫N·HZ007,豫Q·566RV,豫Q·3QQ98,豫Q·95U6C,豫Q·WY304,豫B·81D0D,豫P·4UA02,豫M·HH425,\n" +
                "豫G·MB952,豫U·F9F05,豫G·4A9N1,豫N·184FD,豫K·VR374,豫F·47XC4,豫M·9N83X,豫L·9QU44,豫H·X63Q6,豫J·6HC48,豫P·4D5Z3,豫C·WL505,豫J·141RB,豫L·96E6N,豫A·B5J63,豫E·101EG,豫M·979XK,豫J·183YC,豫G·KR133,豫J·U8E50,豫H·LE572,豫P·WP736,豫G·9HJ27,豫C·962XV,豫C·6D2C7,\n" +
                "豫G·P2V55,豫H·HJ233,豫A·MZ064,豫F·263ET,豫U·J3D32,豫Q·HC224,豫Q·0L32J,豫N·470TA,豫P·06J2U,豫B·E9N78,豫J·89A8T,豫K·AX137,豫L·07EP2,豫G·550MZ,豫L·5BR03,豫H·S2P70,豫A·6QS02,豫D·EZ342,豫K·3LP81,豫G·75L0Z,豫J·362FX,豫J·6Z95D,豫J·D4T05,豫J·T01G2,豫M·NW782,\n" +
                "豫U·C1J00,豫L·011VH,豫A·4V24Q,豫J·D11W9,豫J·75D8R,豫E·UE576,豫N·E6Q10,豫H·BP583,豫J·8RY59,豫J·41S2N,豫M·867PJ,豫L·E513Q,豫M·288FF,豫N·88WX3,豫P·9B06G,豫C·842TK,豫F·0BP05,豫N·37KG3,豫A·28ZS2,豫J·VT439,豫J·6VM69,豫Q·SW778,豫H·22L1M,豫Q·046EC,豫B·8QS30,\n" +
                "豫U·10NH5,豫L·BS079,豫K·N4K68,豫H·QQ310,豫C·B41B6,豫M·DN114,豫K·N545X,豫H·742KW,豫M·569YW,豫C·FP557,豫J·T1Y79,豫B·2RJ98,豫G·73SC4,豫Q·46AY3,豫L·19YZ8,豫H·UN942,豫M·F3Z99,豫F·962SN,豫B·49V7Z,豫M·QT701,豫J·60QZ4,豫J·LS174,豫C·A53N3,豫A·822VN,豫U·W74Q6,\n" +
                "豫P·3EW36,豫C·H23T5,豫N·WA416,豫Q·7BF98,豫G·279EA,豫P·PZ557,豫Q·482QP,豫J·QR328,豫F·GT652,豫J·543RC,豫K·828HD,豫Q·XH284,豫M·6RZ81,豫D·K53C8,豫A·Q437G,豫M·5P71K,豫H·11UJ0,豫N·167BG,豫K·276YC,豫E·NP193,豫G·CH521,豫G·844WS,豫G·5Q3L9,豫K·TG987,豫H·Z452D,\n" +
                "豫J·26CJ4,豫N·8RR79,豫J·YA355,豫H·H1G43,豫J·750PA,豫C·738QP,豫L·H6L97,豫C·5MF87,豫B·PA878,豫F·914HS,豫U·019ZP,豫P·P29Y2,豫A·334TE,豫J·1LU90,豫D·XY602,豫C·9Z2Q7,豫H·40JR3,豫E·7TC79,豫U·2GG27,豫E·1NA21,豫N·HG373,豫F·X8Z95,豫F·JJ859,豫A·521CZ,豫Q·0Z8B5,\n" +
                "豫J·QP979,豫J·WV691,豫K·29LA4,豫Q·562KW,豫G·3J0G3,豫Q·851VF,豫J·862KQ,豫J·2E7J3,豫M·V79F1,豫J·V1K06,豫A·40DC3,豫H·94AJ1,豫N·Y24V2,豫G·J62W1,豫A·6E8C2,豫H·570DR,豫A·JV063,豫N·ND998,豫D·6P64U,豫K·335KF,豫Q·126LF,豫Q·0BX82,豫E·MX577,豫L·153LL,豫D·Y4R58,\n" +
                "豫L·4EW88,豫G·8BH74,豫U·S99J6,豫E·719MQ,豫G·HA916,豫P·82P4L,豫H·43ZD8,豫N·58PD1,豫K·SH472,豫L·KK441,豫F·045WM,豫E·89VD8,豫J·TF843,豫M·309QW,豫L·3Z35R,豫E·J81E1,豫K·KQ370,豫A·YR818,豫G·56LC9,豫G·H111N,豫L·95Q5Z,豫G·C86B3,豫L·A421T,豫B·R97M7,豫L·72L1P,\n" +
                "豫G·HE149,豫E·629RK,豫C·X2A51,豫L·P7B55,豫D·7AE83,豫N·05Y4E,豫F·7H0E6,豫E·5D0Y6,豫J·96D0K,豫F·3VK82,豫H·953UX,豫K·7Y0D6,豫U·6AN81,豫N·B50E7,豫M·Y8D95,豫C·4YS04,豫F·J468T,豫M·W6P00,豫A·H2W04,豫G·YC483,豫E·YY552,豫M·6E27N,豫U·102FQ,豫J·78AY5,豫J·256LT,\n" +
                "豫Q·6RB70,豫J·TQ727,豫Q·HD300,豫B·8KQ17,豫J·95ZA7,豫J·89F0H,豫K·6SW96,豫Q·8CV38,豫K·797VH,豫P·4D2D6,豫M·130PG,豫P·07YZ3,豫P·3W0F4,豫A·305BM,豫B·36UX1,豫M·A4Q58,豫J·0KR18,豫J·GD221,豫N·761MG,豫J·BP219,豫K·5X7M0,豫H·MT176,豫C·653NX,豫U·T6Q38,豫B·43SW4,\n" +
                "豫P·RB349,豫H·WV604,豫C·EU500,豫B·0S3E9,豫Q·543ZR,豫Q·HV162,豫E·EF822,豫E·42RY6,豫N·6AY95,豫A·FA187,豫F·G68W2,豫N·H1J40,豫K·4N5N3,豫J·07G1H,豫L·R59R6,豫K·358FB,豫D·57RD2,豫L·JN485,豫F·3RZ26,豫P·7G9M5,豫U·VE118,豫G·87KS6,豫F·0Q1S2,豫M·6L5W7,豫D·808KW,\n" +
                "豫L·05RR9,豫M·37RL2,豫K·B8V16,豫E·6G2W8,豫B·GU407,豫N·AL072,豫C·TG820,豫N·7Q79V,豫K·KU929,豫G·XS120,豫G·C2Q19,豫U·8BT72,豫N·7P52G,豫M·6QQ20,豫P·490LJ,豫C·618FL,豫A·B673M,豫P·BM083,豫E·WV210,豫A·47WN1,豫J·8H0W0,豫D·W9L75,豫D·9XE62,豫F·8A9S6,豫N·UJ721,\n" +
                "豫P·LD702,豫L·TJ567,豫J·001YH,豫B·2A7J6,豫C·V567L,豫J·F3R24,豫N·8R22P,豫J·BQ609,豫U·S199L,豫E·F8M04,豫D·19KC2,豫A·8S47P,豫H·H53Q9,豫A·59N5H,豫J·L3V94,豫D·90NA6,豫J·C940C,豫H·C22M2,豫B·156PN,豫B·R16U9,豫Q·AR348,豫N·902NP,豫E·3N3Z8,豫A·199FD,豫D·JE560,\n" +
                "豫E·A574A,豫B·8Y85F,豫A·49CD6,豫P·8X4H4,豫N·DV929,豫J·C1H25,豫Q·283SX,豫J·TC949,豫N·YP186,豫J·M20V6,豫U·6XR13,豫A·202ZW,豫P·V802A,豫L·7K0X5,豫M·MC795,豫U·XN543,豫F·00YA6,豫C·SR671,豫H·Q541S,豫U·Y9T38,豫N·70Y3D,豫E·50JE0,豫G·15L0H,豫J·LY563,豫Q·VS917,\n" +
                "豫C·BV669,豫U·634XG,豫J·Z92C8,豫C·N00W5,豫K·HV804,豫K·7D33P,豫F·JL805,豫B·C8J81,豫J·3S2H9,豫F·F76B5,豫K·94L1Z,豫N·901JD,豫E·31T0W,豫F·43BW4,豫J·N84D1,豫B·TE996,豫D·BT729,豫K·82R2Q,豫B·738QV,豫H·WH480,豫P·96S4V,豫K·6XM03,豫F·DN186,豫Q·06LU2,豫P·RY336,\n" +
                "豫J·P1R32,豫P·XE337,豫H·T33Y4,豫F·486LD,豫U·H8E32,豫H·76G0Y,豫M·C3J58,豫C·9A1T9,豫N·64LS0,豫P·Q91V8,豫K·GL540,豫J·3Z0X0,豫J·SX214,豫J·A8S91,豫H·DU780,豫M·DE247,豫U·DZ766,豫U·DU660,豫H·32HD0,豫U·XG662,豫E·6F7W9,豫Q·839TB,豫K·LY865,豫J·89HB0,豫H·N96Y1,\n" +
                "豫J·201PR,豫L·03EZ4,豫J·W7P39,豫J·83HB7,豫H·8J9N5,豫H·CB361,豫F·97J1G,豫B·V5D92,豫J·DF818,豫A·C506D,豫P·93K8S,豫P·4Z85C,豫J·TG407,豫B·173CG,豫B·A91J2,豫B·UE293,豫M·0EE44,豫F·V65R6,豫J·B8S84,豫J·EN842,豫B·5CM76,豫G·F86V3,豫A·T6J15,豫D·730GP,豫A·E0N77,\n" +
                "豫U·70VX1,豫M·2ZX91,豫J·U6T27,豫J·303UU,豫F·2KU45,豫L·504ZC,豫B·ZY651,豫N·93RS4,豫J·R62P6,豫P·693PG,豫C·258FR,豫D·31SS2,豫D·T73C9,豫B·1H23V,豫J·7L5E4,豫L·9JP95,豫A·1P5Z9,豫J·0FU45,豫J·7P8S3,豫J·BH661,豫L·425YC,豫K·L2T24,豫F·RJ119,豫P·67T2X,豫D·6K5U7,\n" +
                "豫F·H108K,豫Q·G33J4,豫B·801KR,豫L·TD837,豫M·Y28B6,豫J·WW542,豫P·EF098,豫J·5U9G0,豫L·GV779,豫C·BH740,豫J·411ZG,豫L·9TY47,豫P·3SP95,";
                String TiHuanChePais = ChePais.replace("\n", "");
                System.out.println(TiHuanChePais);
               String[] split = TiHuanChePais.split(",");
               System.out.println(Arrays.toString(split));
               System.out.println("一共有"+split.length+"的车牌号");

            //遍历数组提取车牌号
             int geshu = 0;
            for (int i = 0; i < split.length; i++) {
               if (split[i].startsWith("豫B")){
                   geshu++;
               }
            }
        System.out.println(geshu);


        String []chepai = new String[split.length];

       for (int i = 0; i < split.length; i++) {
            System.out.println(split[i].substring(0, 2));
           chepai[i] = split[i].substring(0,2);
        }
        System.out.println(Arrays.toString(chepai));
        String[]chepaiArr = Arrays.stream(chepai).distinct().toArray(String[]::new);
        System.out.println(Arrays.toString(chepaiArr));

        for (int i = 0; i < chepaiArr.length; i++) {
                int shuzi = 0;
            for (int j = 0; j < chepai.length; j++) {
                if (chepaiArr[i].equals(chepai[j])){
                    shuzi++;
                }
            }
            System.out.println("车牌"+chepaiArr[i]+"有"+shuzi+"个");
        }


    }

    }


